-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temporarily override GPU base AMI #161
Conversation
@@ -84,6 +85,7 @@ source_ami_al2 = "$ami_name_al2_x86" | |||
source_ami_al2arm = "$ami_name_al2_arm" | |||
source_ami_al2kernel5dot10 = "$ami_name_al2_kernel5dot10" | |||
source_ami_al2kernel5dot10arm = "$ami_name_al2_kernel5dot10arm" | |||
source_ami_al2_gpu = "amzn2-ami-minimal-hvm-2.0.20230926.0-x86_64-ebs" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we don't need to update generate-release-vars.sh since the default value for source_ami_al2_gpu is defined in variables.pkr.hcl?
variable "source_ami_al2_gpu" {
type = string
description = "Amazon Linux 2 source AMI to build AL2GPU AMI from. This is a temporary override."
default = "amzn2-ami-minimal-hvm-2.0.20230926.0-x86_64-ebs"
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. This is writing to the release.autopkrvars.hcl
so that releaser can see the diff and write change log though, so I would not think it is a big deal to keep it.
Summary
Temporarily override base AMI for AL2 GPU due to a known al2 kernel and EFA/Nvidia incompatibility
Implementation details
Add a variable and change al2gpu recipe to use a pinned al2 base AMI.
Testing
New tests cover the changes: N/A
Ran
REGION=us-west-2 make al2gpu
and verified a pinned base AMI is used (ami-0bac1825e471f5042)Description for the changelog
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.